home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17534 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  919 b 

  1. Path: abacus.abasoft.co.uk!not-for-mail
  2. From: dmb@abacus.abasoft.co.uk (David Byrne)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Arrays of structures
  5. Date: 15 Apr 1996 14:03:22 +0100
  6. Organization: Abacus Software Ltd.
  7. Message-ID: <4ktheq$cvm@abacus.abasoft.co.uk>
  8. References: <4kbuqo$n6n@lemon.easynet.co.uk>
  9. NNTP-Posting-Host: abacus.abasoft.co.uk
  10. X-NNTP-Posting-Host: abacus.demon.co.uk
  11.  
  12. In article <4kbuqo$n6n@lemon.easynet.co.uk>, dgo <dgo@easynet.co.uk> wrote:
  13.  
  14. example test[3] = 
  15. {
  16.     { 3, 5 },
  17.     { 4, 6 },
  18.     { 5, 7 }, <--- drop the comma, you've only allocated space for 3 elements
  19. };
  20.  
  21. Regards,
  22.  
  23. David
  24. -- 
  25. David Byrne, Abacus Software, London, UK              Tel: +44 (0)171 603 9877
  26. Email: dmb@abacus.demon.co.uk                         Fax: +44 (0)171 603 6844
  27. Here's a koan: If you have ice-cream I will give you some. If you have none,
  28.                I will take it away from you. (it's an ice-cream koan).
  29.